package com.tpshion.cloud.auth.domain.dto;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Valid
public class PermissionCheckNameDto {

    /**
     * 权限id
     */
    @Size(max = 64, message = "权限id长度不能超过64")
    private String id;

    @NotEmpty(message = "权限不能为空")
    @Size(max = 30, message = "权限长度不能超过30")
    private String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "PermissionCheckNameDto{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
